<div class="span12">
    <!--tombol cetak report-->
    <!--tabel-->
    <table class="table table-bordered table-striped">
        <colgroup>
            <col class="span1">
            <col class="span7">
        </colgroup>
        <thead align="center">
            <tr>
                <th colspan="7" style="text-align: center; background-color:#610E54; color:white;">DAFTAR JUDUL tesis</th>
            </tr>
            <tr>
                <th>No Surat</th>
                <th>Kode tesis</th>
                <th>NPM</th>
                <th>Nama</th>
                <th>Judul</th>
                <th>Cetak</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($surat as $data): ?> 
                <tr>
                    <td><span class="label label-info"><?php echo $data->no ?>/MMR/B.4-III/IV/<?php echo gmdate('Y') ?></span></td>
                    <td><strong><?php echo $data->id ?></strong></td>
                    <td><?php echo $data->nim ?></td>
                    <td><?php echo $data->nama ?></td>
                    <td><?php echo $data->judul ?></td>
                    <td><?php echo $data->cetak ?></td>
                    <td><?php echo anchor('admin/letter/' . $data->id, '<button type="button" class="btn btn-info">Print</button>') ?></td>
            </tbody>
        <?php endforeach; ?>
    </table>
</div>